<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
        	<div class="col-sm-3">
        		                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>个人资料</h5>
                    </div>
                    <div>
                        <div class="ibox-content no-padding border-left-right">
                            <img alt="image" class="img-responsive" src="/profile/avatar/2ebfbcefb8bbf9b538c3df77ef0073e5.jpg">
                        </div>
                        <div class="ibox-content profile-content">
                            <h4><strong>Beaut-zihan</strong></h4>
                            <p><i class="fa fa-map-marker"></i>济南市市中区恒大睿城3#</p>
                            <h5>
                                    关于我
                                </h5>
                            <p>
                                专注后端，SSH，SpringMVC，SpringBoot，会点前端技术，div+css啊，jQuery之类的，不是很精；热爱生活，热爱互联网，热爱新技术；在不断的寻求新的突破。
                            </p>
                            <div class="row m-t-lg">
                                <div class="col-sm-4">
                                    <span class="bar"></span>
                                    <h5><strong>169</strong> 文章</h5>
                                </div>
                                <div class="col-sm-4">
                                    <span class="line"></span>
                                    <h5><strong>28</strong> 关注</h5>
                                </div>
                                <div class="col-sm-4">
                                    <span class="bar"></span>
                                    <h5><strong>240</strong> 关注者</h5>
                                </div>
                            </div>
                            <div class="user-button">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <button type="button" class="btn btn-primary btn-sm btn-block"><i class="fa fa-envelope"></i> 发送消息</button>
                                    </div>
                                    <div class="col-sm-6">
                                        <button type="button" class="btn btn-default btn-sm btn-block"><i class="fa fa-coffee"></i> 赞助</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        	</div>
            <div class="col-sm-9">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                    	<div style="display: none" id="searchtitle">
 							<h2>为您找到相关结果1个： <span class="text-navy">“后台主题”</span></h2>
                    	</div>
                        <div class="search-form">
                                <div class="input-group">
                                    <input type="text" placeholder="请输入搜索内容" name="search" id="searchgjz" class="form-control input-lg">
                                    <div class="input-group-btn">
                                        <button class="btn btn-lg btn-primary" onclick="searchblog()">
                                          	  搜索
                                        </button>
                                    </div>
                                </div>

                        </div>
                        <div id="searchdiv">
                        	
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="search-result">
                            <h3><a href="search_results.html#">定制后台的主题目录(Theme)</a></h3>
                            <a href="search_results.html#" class="search-link">koda.iteye.com/blog/10...</a>
                            <p>
                                不像前台Theme目录的改变可以通过后台界面配置,后台的主题目录要自己修改相应的配置文件。 Theme目录的配置再Adminhtml模块,打开后台的配置文件 $MAGENO_DIR\app\code...
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div th:include="include :: footer"></div>
    <script type="text/javascript">
    	function searchblog(){
    		var gjz=$("#searchgjz").val();   		
    		var blog={'blogname':gjz};
    		$.ajax({ 
    			url: "/system/blog/searchlist",
    			type:"POST", 
    			data:blog, 
    			success: function(data){
    				var str="";
    				if(data.length>0){
    					for(var i=0;i<data.length;i++){
    						console.info(data[i].blogname)
    						str+='<div class="hr-line-dashed"></div>';
    						str+='<div class="search-result">';
    						str+='<h3><a href="#" onclick="opendetail('+data[i].blogid+')">'+data[i].blogname+'</a></h3>'
							str+='<a href="#" onclick="opendetail('+data[i].blogid+')" class="search-link">'+data[i].blogtype+'</a>';
							str+='<p>'+data[i].blogabstract+'</p>'
							str+='</div>'
    					}		
    				}
    				$("#searchdiv").html(str)
    			},error:function(){
    				alert(error)
    			}
    		})
    	} 
    	
    	
    	function opendetail(id){
    		 createMenuItem('/system/blog/viewdetail/'+id,"博客正文");
    	}
    </script>
</body>
